]> dgit.raspbian.org Git - gnome-shell.git/commit
tray/na-xembed: Destroy socket window when ending the embedding
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 03:56:48 +0000 (05:56 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 13 Sep 2025 17:00:15 +0000 (19:00 +0200)
commitd02e82e0c253107826ff4dc9645831315fb38ea0
treea249b20c2e5e537d8e900a544c6b98cce4d14b23
parentcc8854cd128a0fb0d729031f00c5f3304aa5767e
tray/na-xembed: Destroy socket window when ending the embedding

Currently when embedding a tray icon is ended we are leaving the X11
socket window around as we don't really destroy it, while we're just
listening for its child destruction.

So, when embedding is ending we need to make sure that:
 - If the plug window is still alive, move it back to its old parent
   (normally that's the root window, but we query for it, to be sure)
 - If the plug window has been already destroyed or reparented (by us or
   by something else), we've to just destroy the socket window

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7614
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3818>
(cherry picked from commit cd39f7ab4725588d237e7b79763384c0e92f41ff)
src/tray/na-xembed.c